import { request } from '@pkg/request/src';

export enum Api {
  page = '/tourTime/page',
  tourTimeList = '/tourTime/list',
  get = '/tourTime/get',
  add = '/tourTime/save',
  update = '/tourTime/update',
  remove = '/tourTime/remove',
}

export const get = params =>
  request.get(
    {
      url: Api.get,
      params: params,
    },
    { errorMessageMode: 'none', successMessageMode: 'none' },
  );

export const tourTimeList = params =>
  request.get(
    { url: Api.tourTimeList, params },
    {
      errorMessageMode: 'none',
      successMessageMode: 'none',
    },
  );
